package cmbc.honorcredit.jdbc;

import java.sql.PreparedStatement;
import java.sql.SQLException;

import org.springframework.jdbc.core.PreparedStatementSetter;

public class HonPreparedStatementSetter implements PreparedStatementSetter {
	
	private int[] types ;
	private Object[] param;
	
	
	public HonPreparedStatementSetter(int[] types,Object[] param){
		this.types = types;
		this.param = param;
	}
	
	@Override
	public void setValues(PreparedStatement preparedstatement) throws SQLException {
		// TODO Auto-generated method stub
		SQLUtil.bindParameters(preparedstatement, types, param);
	}

}
